package dome1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DickYang
 * Date: 2023-05-09
 * Time: 10:31
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        KeyBoard keyBoard = new KeyBoard();

        computer.open();
        Computer.useDevice(mouse);
        Computer.useDevice(keyBoard);
        computer.close();
    }

}
